//
//  ColorDemo.swift
//  firstFontAttrDemo
//
//  Created by liy on 2025/1/22.
//

import SwiftUI

struct ColorDemo: View {
  var body: some View {
    // 颜色的几种表示形式
    //      Color.cyan //枚举
    //      Color(red: 0.2, green: 0.7, blue: 0.9) //rgb
    //      Color(hue: 0.5, saturation: 1, brightness: 1, opacity: 1) //色调
    //      Color(white: 1)
    Color.accentColor // 强调色
  }
}

#Preview {
  ColorDemo()
}
